home *** CD-ROM | disk | FTP | other *** search
- /* Screen editor: key definitions
- *
- * Module: ed1/ccc
- * Date: November 25, 1983
- */
-
- /* Define keys used for special edit functions. */
-
- /* these two are used during insert mode */
- #define UP1 0x92
- /* ins up--shift up arw */
- #define DOWN1 0x0D
- /* ins dn--ENTER */
-
- /* these are used during edit mode */
- #define UP2 0x82
- /* up arrow */
- #define DOWN2 0x88
- /* down arrow */
- #define LEFT1 0x81
- /* back arrow */
- #define RIGHT1 0x84
- /* right arrow */
- #define ZAP1 0xB5
- /* clear 5 */
- #define ABT1 0xB9
- /* clear 9 */
- #define SPLT1 0xB1
- /* clear 1 */
- #define JOIN1 0xB3
- /* clear 3 */
-
- /* these are used during all three modes */
- #define INS1 0xAD
- /* clear - */
- #define EDIT1 0xBA
- /* clear : */
- #define ESC1 0xB0
- /* clear 0 */
- #define DEL1 0x91
- /* shift back arrow */
-
- /* The following equates will define what keys are used
- * for functions in the EDIT mode.
- */
- #define crightkey ' ' /* move cursor right */
- #define bottomkey 'b' /* move to bottom of text */
- #define changekey 'c' /* change one character */
- #define deletekey 'd' /* delete a line of text */
- #define endkey 'e' /* position cursor to EOL */
- #define findkey 'f' /* find string */
- #define gotokey 'g' /* goto specified line number */
- #define exchagkey 'h' /* change multiple characters */
- #define insertkey 'i' /* begin insertion of text */
- #define killkey 'k' /* kill to 'n' character */
- #define beginkey 'l' /* position cursor @ beg of ln */
- #define pagedown 'p' /* position to next page */
- #define replackey 'r' /* replace a line of text */
- #define searchkey 's' /* search for a char in line */
- #define topkey 't' /* move to top of text */
- #define pageup 'u' /* position to previous page */
- #define extendkey 'x' /* pos to EOL and begin insert */
- #define recallkey 'z' /* recall current line number */
- #define FNK 0xB2 /* programmable function key */
- /* <CLR> <2> */
-
- /* end module ed1/ccc */
-
-